You are here: Symbol Reference > Dew Namespace > Dew.Signal Namespace > Dew.Signal.Units Namespace > Classes > SignalUtils Class > SignalUtils Methods > SignalUtils.LogRamp Method
Dew Signal for .NET
ContentsIndexHome
Example

Compute 10 values of a logarithmic scale between powers of -1 and +1. 

 

using Dew.Math; using Dew.Math.Editors; using Dew.Math.Units; using Dew.Signal; using Dew.Signal.Units; using Dew.Math.Tee; using Dew.Signal.Tee; private void button1_Click(object sender, EventArgs e) { Vector RampVec = new Vector(10); SignalUtils.LogRamp(RampVec,-1,1); // RampVec = [0.1 0.1668 0.2782 0.4641 0.7742 // 1.2915 2.1544 3.5938 5.9948 10] MtxVecEdit.ViewValues(RampVec,"Logarithmic scale"); }
Copyright (c) 1999-2024 by Dew Research. All rights reserved.